home *** CD-ROM | disk | FTP | other *** search
-
- on rightTurnDelete
-
- global gSpinLead, gLastSpinTime, gSpinCount, gSpinOffset
- if gSpinLead < 15 then
- if gSpinOffset = gSpinLead then
- set offset = (the castnum of sprite 1)-1-(2*gSpinLead)
- if offset < 0 then
- set offset = 30 + offset
- end if
- unloadcast (the number of cast "Studio0001") + offset
- else
- set gSpinOffset = gSpinOffset + 1
- end if
- end if
- set gSpinCount = 1
- set gLastSpinTime = the ticks
- end rightTurnDelete
-
-
- on leftTurnDelete
-
- global gSpinLead, gLastSpinTime, gSpinCount, gSpinOffset
- if gSpinLead < 15 then
- if gSpinOffset = -gSpinLead then
- set offset = (the castnum of sprite 1)-1+(2*gSpinLead)
- if offset > 29 then
- set offset = offset - 30
- end if
- unloadcast (the number of cast "Studio0001") + offset
- else
- set gSpinOffset = gSpinOffset - 1
- end if
- end if
- set gLastSpinTime = the ticks
- set gSpinCount = 1
- end leftTurnDelete
-
-